package com.parkingspace.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 角色权限表
 * </p>
 *
 * @author Gapper
 * @since 2021-05-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
      @TableId(value = "pid", type = IdType.ASSIGN_ID)
    private Long pid;

    /**
     * 权限名称
     */
    private String pname;

    /**
     * 父权限ID对应pid
     */
    private Long parentid;

    /**
     * 权限超链接
     */
    private String url;

    /**
     * 是否是菜单(是,否)
     */
    private String ismenu;

    /**
     * 软删除(0:未删除,1:已删除)
     */
    @TableLogic
    @TableField(select = false)
    private Integer softdel;

    /**
     * 菜单图标
     */
    private String icon;


}
